//
//  ViewController.m
//  testBoard
//
//  Created by suxiaoyu on 14/12/16.
//  Copyright (c) 2014年 suxiaoyu. All rights reserved.
//

#import "ViewController.h"
#import "UserLoginViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    UIButton *testBtn = [[UIButton alloc]initWithFrame:CGRectMake(0, 0, 100, 100) ];
    testBtn.backgroundColor = [UIColor greenColor];
    [testBtn addTarget:self action:@selector(testClick) forControlEvents:UIControlEventTouchUpInside];
    testBtn.center = self.view.center;
    [self.view addSubview:testBtn];
    
}


- (void)testClick{
    NSLog(@"点击wo了!11111");
    
    
    UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"UserLogin" bundle:nil];
    UIViewController *viewVC = [storyboard instantiateViewControllerWithIdentifier:@"UserLogin"];
    [self presentViewController:viewVC animated:YES completion:^{
        
    }];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
